package com.wingscode.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.sys.entity.BuildQualEntity;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 资质
 *
 * @author yan
 */
@Mapper
public interface BuildQualDao extends BaseMapper<BuildQualEntity> {

	IPage<BuildQualEntity> queryAll(IPage<BuildQualEntity> page, @Param("nameId") Integer nameId, @Param("grade") Integer grade,
				@Param("qualType") Integer qualType, @Param("state") Integer state, @Param("qualFlag") Integer qualFlag);

	List<BuildQualEntity> getByGrade(@Param("nameId") Integer nameId, @Param("grade") Integer grade);

	List<BuildQualEntity> getBuildQual(@Param("nameId") Integer nameId, @Param("grade") Integer grade, @Param("qualType") Integer qualType);
}
